

print(sorted([45, 2, -56, 10, -1]))


# 按绝对值排序
print(sorted([45, 2, -56, 10, -1],key=abs))